﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace EFCore.Migrations.HF
{
    /// <inheritdoc />
    public partial class HF : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "HF",
                columns: table => new
                {
                    HufId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    HumanId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FirstKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FirstKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SecondKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SecondKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    ThirdKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanAddress = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanPostcode = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanProDesignation = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanMajorKindId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanMajorKindName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanMajorId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HunmaMajorName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanTelephone = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanMobilephone = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanBank = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanAccount = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanQQ = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanEmail = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanHobby = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanSpeciality = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanSex = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanReligion = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanParty = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanNationality = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanRace = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanBirthday = table.Column<DateTime>(type: "datetime2", nullable: false),
                    HumanBirthplace = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanAge = table.Column<int>(type: "int", nullable: false),
                    HumanEducatedDegree = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanEducatedYears = table.Column<int>(type: "int", nullable: false),
                    HumanEducatedMajor = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanSocietySecurityId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanIdCard = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SalaryStandardId = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SalaryStandardName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    SalarySum = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    DemandSalaraySum = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    PaidSalarySum = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
                    MajorChangeAmount = table.Column<int>(type: "int", nullable: false),
                    BonusAmount = table.Column<int>(type: "int", nullable: false),
                    TrainingAmount = table.Column<int>(type: "int", nullable: false),
                    FileChangAmount = table.Column<int>(type: "int", nullable: false),
                    HumanHistroyRecords = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanFamilyMembership = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    HumanPicture = table.Column<byte[]>(type: "varbinary(max)", nullable: false),
                    AttachmentName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    CheckStatus = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Register = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Checker = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Changer = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    RegistTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CheckTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    ChangeTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    LastlyChangeTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    DeleteTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    RecoveryTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    HumanFileStatus = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_HF", x => x.HufId);
                });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "HF");
        }
    }
}
